<?

class Mdl_Templates extends MY_Model {

    function Mdl_Templates() {

        parent::MY_Model();

    }

    function get() {

        $templates = directory_map('./system/application/views');

        foreach ($templates as $key=>$value) {

            if (is_array($templates[$key]) AND $key <> 'admin') {

                $return[] = $key;

            }

        }

        return $return;

    }

}

?>